from django.conf.urls import url, include

from organization.views import *
from teachers.views import TeachersView, TeacherDetailView

urlpatterns = [

    # 由于开发进度不统一，
    # 为了能运行，以下是临时路由
    url(r'^org/$', OrgView.as_view(), name='org_list'),
    url(r'^teacher/$', TeachersView.as_view(), name='teacher_list'),
    url(r'^course/$', Course.as_view(), name='add_fav'),
    # ===========学校信息视图============
    url(r'^org_home/(?P<pk>[0-9]*/?)$', Org_View.as_view(), name='org_home'),
    url(r'^org_course/(?P<pk>[0-9]*/?)$', Org_Course.as_view(), name='org_course'),
    url(r'^org_desc/(?P<pk>[0-9]*/?)$', Org_Desc.as_view(), name='org_desc'),
    url(r'^org_teacher/(?P<pk>[0-9]*/?)$', Org_Teacher.as_view(), name='org_teacher'),
    url(r'^org_add/$', Org_Add.as_view(), name='add_ask'),
    # =============教师详情视图================
    url(r'^teacher_detail/(?P<pk>[0-9]*/?)$', TeacherDetailView.as_view(), name='teacher_detail')

]
